Reference: swyx blog, robin blog
STEP 1 OS Settings
Dock
- Remove most application from the dock
- Middle size magnification and Smaller dock
- OFF “show recent applications in dock”
- ON “show indicators for open applications”
- OFF menu bar “Automatic hide desktop and full screen”
Battery
- ON “Show percentage”
Display
- Nightshift
Siri
- Disable
Trackpad
- Tap to click
- Tracking speed 9/10
Keyboard-Text
- disable “Capitalize word automatically”
- disable “Add full stop with double-space”
- disable “Use smart quotes and dashes”
- use “ for double quotes
- use ‘ for single quotes
Spotlight
- Disable Spotlight except for Applications and System Preferences
Finder
- Sidebar on locations
- Hide all Tags
- Show all Filename Extensions
- Search the current folder
- view show tab/path/status bar
Dictionary
- Add chinese simplified dictionary
- Delete wiki and apple dictionary
Sharing
- Change computer name
Terminal
Change terminal user name
1
2
3sudo scutil --set ComputerName "newname"
sudo scutil --set LocalHostName "newname"
sudo scutil --set HostName "newname"Default show hidden files
1
defaults write com.apple.finder AppleShowAllFiles YES
Security & Privacy -> General
- immediately after sleep or screen saver begin
Screen saver
- Flip Clock Screen Saver
- Set Right Hot Corner to screen saver and cancel other corner
STEP 2 Homebrew
Install homebrew as package manager for macOS, paste that command line in the terminal. Remember to set $PATH in .zprofile
Refer: Install Homebrew
Install GUI applications:
1 | brew install --cask \ |
Install terminal applications :
1 | brew install \ |
Install other apple apps: xnip, google drive
Install node app:
1 | npm install -g typescript \ |
STEP 3 Set Iterm2 Terminal
Make iterm2 Default Term
Preference
- General ->
- Window
- unselect “Native full screen windows”
- Startup
- Use System Window Restoration Setting
- select “close windows when closing an app”
- Window
- Appearance
- Windows: select “Hide scrollbar”
- Tabs:
- unselect “Show tab bar in fullscreen”
- Select “flash tab bar when switching tabs in fullscreen”
- Dimming: Unselect all dimming
- Profiles -> window
- Transparency: 30
- Style: full screen
- Screen: main screen
- Profiles -> Advanced
- Semantic History -> Open with editor … -> VS Code
- Open new split pane with current directory
- Natural Text Editing
- General ->
Install Oh-my-zsh
Homebrew Install Starship as new terminal theme.
1
2brew install starship
echo 'eval "$(starship init zsh)"' >> ~/.zshrcInstall and use the new font in iTerm2: Preferences -> Profile -> Text -> Font: monoid-nerd-font.
1
2brew tap homebrew/cask-fonts
brew install --cask font-monoid-nerd-fontDownload oh-my-zsh plugins, clone that git repo to default zsh directory, and set plugin in
.zshrc
STEP 4 Set VS Code
Download Extensions:
- Gitlens
- Auto Import
- Auto Close Tag
- Auto Close Tag
- EditorConfig
- eslint
- prettier
- Better Comments
- import cost
- Highlight Matching Tag
- color highlight
- ES7+ React/Redux/React-Native/JS snippets, react refactor
- vscode-styled-components
- color picker
- leetcode
- The Doki Theme
- background
- prettier-eslint
- Markdown Preview Enhanced
- markdownlint
- markdown all in one
- Code Spell Checker
JSON settings:
1 | { |
STEP 5 Set Github
For terminals, set global name and email
1 | git config --global user.name Kristine |
Set SSH Keys for github
create a new SSH key in the
~/.sshfolder:1
2
3
4
5mkdir ~/.ssh
cd ~/.ssh
ssh-keygen -t ed25519 -C "github"
use file name: github
use passphraseIn your
~/.ssh/configfile, add the new SSH key, so that it can get picked up for every terminal session automatically:1
2
3
4Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/githubAdd SSH key to MacOS’ keychain:
1
ssh-add --apple-use-keychain ~/.ssh/github
Add the public key to your GitHub settings via the website or via the GitHub CLI via
1
2
3use GitHub's CLI
brew install gh
gh auth login
- 本文作者: 七渡浔
- 本文链接: https://kristineq.github.io/2022/09/13/MAC SETUP/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!